<h1>Listing couriers</h1>

<table>
  <tr>
    <th>Active</th>
    <th>Latest lat</th>
    <th>Latest long</th>
    <th>User</th>
  </tr>

<% @couriers.each do |courier| %>
  <tr>
    <td><%=h courier.active %></td>
    <td><%=h courier.latest_lat %></td>
    <td><%=h courier.latest_long %></td>
    <td><%=h courier.user_id %></td>
    <td><%= link_to 'Show', courier %></td>
    <td><%= link_to 'Edit', edit_courier_path(courier) %></td>
    <td><%= link_to 'Destroy', courier, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New courier', new_courier_path %>